package com.apes.autoparts.supplier.dataCenter;

import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * Created by lishikun on 2021/5/21 10:49
 */
public interface DCBusinessinfoDebugRepository extends CustomRepository<DCBusinessinfoDebug, String> {
    @Modifying
    @Query(value = "DELETE FROM dc_businessinfo_debug T where T.supplier_platform_item_id = :supplierPlatformItemId",nativeQuery = true)
    int deleteBySupplierPlatformItem(@Param("supplierPlatformItemId") String supplierPlatformItemId);
}
